local ClientOHOH = _G.ClientOHOH;

local M = ClientOHOH.class.new(script, ClientOHOH.files.BaseObject())
local CallBackManager = ClientOHOH.load.CallBackManager();
local ConnectClass=_G.CommonOHOH.load.Connect();

instStr={
    lockDone="ctrl.Lock.done",--锁定完成
}

function M.new(...)
	return M(...);
end;

function M.ctor(self,ctrl)
    M.super.ctor(self);
    self.ctrl=ctrl
    self.ui=ctrl:InitUiInst2(ctrl.main_inst,instStr)
    CallBackManager:AddRbxConnect(self,self.ui.lockDone.Activated, function()
        self.ctrl:ShowOnlyStatu("equip")
	end);
end;


function M.IsShowing(self)
    return  self.isShow
end

function M.dtor(self)
	M.super.dtor(self);
end;


function M.Show(self)
    self.ui.lockDone.Visible=true
    self.isShow=true
end

function M.Change(self,cell)
    cell:ChangeLock()
end

function M.Hide(self)
    self.ui.lockDone.Visible=false
    self.isShow=nil
    self.isShow=nil
end


return M